package cn.yuanqiao.archive.Identify.service;

import cn.yuanqiao.archive.Identify.domain.Destroy;
import cn.yuanqiao.archive.Identify.domain.DestroyCar;
import cn.yuanqiao.archive.Identify.domain.vo.DestroyCarVo;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface DestroyService {
    void insert(DestroyCar destroyCar);

    void update(DestroyCar destroyCar);

    void update1(Long destroyId);

    List<DestroyCarVo> findDestroyCarVo(Long destroyId);

    void deleteByIds(String ids);

    List<Map<String, Object>> getlist(JSONObject json);

    void destroyDel(String ids,Long categoryId);

    void addDestroy(Destroy destroy);

    List<Destroy> destroyList(Destroy destroy);

    List<Destroy> destroyList1(Destroy destroy);

    /**
     * 办结使用
     * @param destroyId
     */
    void endDestroy(Long destroyId);

    /**
     * 退回使用
     * @param destroyId
     */
    void backDestroy(Long destroyId);

    void upload(Long destroyId, MultipartFile file);

    void clearFilePath(Long destroyId);

    public String download(Long destroyId);

    Destroy destroyById(Long destroyId);
}
